import requests
from bs4 import BeautifulSoup

ret = requests.get("http://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=2&ch=8&tn=1&wd=%E5%AE%B6%E5%85%B7&rsv_spt=1&oq=1688&rsv_pq=d851090700081b88&rsv_t=6963HqNr11xe%2Bv0p9TlxYjp6YpL6mEaFcY%2F6iKm%2FUkFyStBmpJilvjhHQ6E&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_btype=t&inputT=8387&rsv_sug3=21&rsv_sug1=20&rsv_sug7=101&rsv_sug2=0&rsv_sug4=8657&rsv_sug=1")
s = ret.text

soup = BeautifulSoup(s)
r = soup.find_all('a')


for i in r:
    print(i.get_text())
